package com.xueyi.rebar.contant;

public enum FlowCodeEnum {


    DELIVERY_ORDER("rebar_test", "配送单申请");
    //NO("N", "否");

    private final String code;
    private final String info;

    FlowCodeEnum(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public static FlowCodeEnum getEnumByCode(String value) {
        if (value == null) {
            return null;
        }
        for (FlowCodeEnum item : FlowCodeEnum.values()) {
            if (item.getCode().equals(value)) {
                return item;
            }
        }
        return null;
    }


}
